﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InfoTbl_BP.aspx.cs" Inherits="InfoTbl_BP" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style type="text/css">
        a:link
        {
            text-decoration: none;
            color: #05169f;
        }

        a:visited
        {
            text-decoration: none;
            color: rgb(66,174,214);
        }

        a:active, a:hover
        {
            text-decoration: none;
            color: #33A1C9;
        }

        td
        {
            border: 1px solid #a49c9c;
        }
    </style>
    <script type="text/javascript">
        window.onload = function () {

            var item = document.getElementById("BPGridView");            //获取id为tb的元素(table)
            var trs = item.getElementsByTagName("tr");            //获取tbody元素下的所有tr元素
            for (var i = 0; i < trs.length; i++) {//循环tr元素
                if (i % 2 == 0) {        //取模. (取余数.比如 0%2=0 , 1%2=1 , 2%2=0 , 3%2=1)
                    trs[i].style.backgroundColor = "#F0FFFF"; // 改变 符合条件的tr元素 的背景色.

                }
            }

        }
    </script>
</head>
<body>
    <form id="form1" runat="server">




        <div id="BPDIV">
            <asp:GridView ID="BPGridView" AutoGenerateColumns="False" runat="server"
                BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                CellPadding="3" DataKeyNames="ID" Style="width: 100%; position: relative; float: right; display: block; text-wrap: avoid; white-space: nowrap;" AllowPaging="true" PageSize="5">
                <RowStyle ForeColor="#000066" Wrap="false" />
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="序号" />

                    <asp:HyperLinkField DataNavigateUrlFields="ID" HeaderText="薄片编号"
                        DataNavigateUrlFormatString="ZKDepthDetials.aspx?bpid={0}"
                        DataTextFormatString="{0}" Target="_blank" DataTextField="BP_CODE"
                        SortExpression="BP_CODE" />
                    <asp:BoundField DataField="BP_NAME" HeaderText="薄片名称"
                        SortExpression="BP_NAME" />

                    <asp:BoundField DataField="ZL_FILE_ID" HeaderText="地质资料档号"
                        SortExpression="ZL_FILE_ID" />
                    <asp:BoundField DataField="PM_PATH_NAME" HeaderText="剖面（路线）名称"
                        SortExpression="PM_PATH_NAME" />
                    <asp:BoundField DataField="PM_PATH_NUM" HeaderText="剖面（路线）编号"
                        SortExpression="PM_PATH_NUM" />
                    <asp:BoundField DataField="JD_NAME" HeaderText="鉴定名称" SortExpression="JD_NAME" />
                    <asp:BoundField DataField="JGGZ" HeaderText="结构构造" SortExpression="JGGZ" />
                    <asp:BoundField DataField="JD_PEOPLE" HeaderText="鉴定人" SortExpression="JD_PEOPLE" />
                    <asp:BoundField DataField="JD_DATE" HeaderText="鉴定日期" SortExpression="JD_DATE" />

                    <asp:BoundField DataField="LR_DATE" HeaderText="录入时间"
                        SortExpression="LR_DATE" />
                    <asp:BoundField DataField="LR_PEOPLE" HeaderText="录入人"
                        SortExpression="LR_PEOPLE" />


                </Columns>
                <FooterStyle BackColor="White" ForeColor="#000066" />
                <HeaderStyle BackColor="#DCDCDC" Font-Size="13px" CssClass="infoHead" HorizontalAlign="Center" Font-Bold="True" ForeColor="#363636" />
                <RowStyle HorizontalAlign="Center" ForeColor="#000066" Font-Size="13px" BorderColor="#c0c0c0" />
                <PagerStyle HorizontalAlign="Left" BackColor="White" BorderStyle="None" BorderWidth="0px" ForeColor="#000066" />
                <PagerSettings Visible="False" />
                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#007DBB" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#00547E" />
            </asp:GridView>
            <br />
            <div style="width: 100%; float: left;">
                <webdiyer:AspNetPager ID="BPAspNetPager" Width="100%" Style="font-style: italic; font-family: KaiTi; font-size: 12px; color: #272626; text-align: left; padding: 0 0 0 10px; width: auto;" runat="server" ShowPageIndex="true" ShowPageIndexBox="always" AlwaysShow="True"
                    PageIndexBoxType="TextBox" TextBeforePageIndexBox="翻页" OnPageChanging="BPAspNetPager_PageChanging" PageSize="5" ShowBoxThreshold="1" CurrentPageButtonClass="cpb" HorizontalAlign="center" ShowCustomInfoSection="left" CustomInfoHTML="页次:%CurrentPageIndex%/%PageCount%页      每页:%PageSize%条    共:%RecordCount%条记录">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </form>
</body>
</html>
